package my.learn.tx.onXML.service;

import my.learn.tx.onXML.api.dao.AccountDao;
import my.learn.tx.onXML.api.service.AccountService;
import my.learn.tx.onXML.domain.Account;


public class AccountServiceImpl implements AccountService {

    AccountDao accountDao;

    // set方法：不是setter方法
    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }

    @Override
    public Account findById(Integer id) {
        return accountDao.findById(id);
    }

    @Override
    public Integer updateAccount(Account account) {
        return accountDao.updateAccount(account);
    }
}
